<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>第一个 ECharts 实例</title>
    <!-- 引入 echarts.js -->
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
</head>
<body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main" style="width: 600px;height:400px;"></div>
    <script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));
 
       var option = {
           title: {
               text: '多条折线图'
           },
           tooltip: {
               trigger: 'axis'
           },
           legend: {
               data: ['折线1', '折线2', '折线3']
           },
           xAxis: {
               type: 'category',
               boundaryGap: false,
               data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
           },
           yAxis: {
               type: 'value'
           },
           series: [
               {
                   name: '折线1',
                   type: 'line',
                   data: [82000, 93200, 90100, 93400, 129000, 133000, 132000]
               },
               {
                   name: '折线2',
                   type: 'line',
                   data: [72000, 83200, 80100, 83400, 110090, 120030, 120020]
               },
               {
                   name: '折线3',
                   type: 'line',
                   data: [60020, 70032, 70001, 73400, 109000, 100130, 110020]
               }
           ]
       };
       
         // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    </script>
</body>
</html>